package com.example.myhotel.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Rooms implements Serializable {

    private String id;

    @JsonProperty(value = "imageUrl")
    private String image;
    //房型

    private String roomType;
    //床位数

    private int bedsNumber;
    //价格

    private String address;
    private int prices;
    //房间数
    private int count;//1或0

    @TableField(exist = false)
    private LocalDateTime bookTime;

    //添加时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
